<template>
  <div class="container">
    <!-- 标题 -->
    <div class="settitle">
      <div class="setimg" @click="$router.back()">
        <img src="../assets/imgs/iconse/左箭头.png" alt="" />
      </div>
      <div class="text"><h2>设置</h2></div>
    </div>

    <!-- 头像更换弹窗 -->
    <div class="box" v-show="!qz">
        <p>返回</p>
        <p>拽入图片进行替换</p>
        <img :src="srcs" alt="">
    </div>

    <div class="qz" v-show="qz">
      <!-- 模块一  头像·姓名·性别-->
      <div class="setbox">
        <!-- 头像 -->
        <div class="item">
          <div class="itemleft">
            <span>头像</span>
          </div>
          <div class="itemrigth">
            <div class="numimg">
              <img :src="srcs" alt="" />
            </div>
            <!-- <span class="nums"></span> -->
          </div>
        </div>

        <!-- 姓名 -->
        <div class="item">
          <div class="itemleft">
            <span>姓名</span>
          </div>
          <div class="itemrigth">
            <span class="nums"></span>
          </div>
        </div>

        <!-- 性别 -->
        <div class="item">
          <div class="itemleft">
            <span>性别</span>
          </div>
          <div class="itemrigth">
            <span class="nums">男</span>
          </div>
        </div>
      </div>

      <!-- 模块二  社区昵称·求职身份-->
      <div class="setbox">
        <!-- 社区昵称 -->
        <div class="item">
          <div class="itemleft">
            <span>社区昵称</span>
          </div>
          <div class="itemrigth">
            <span class="nums">吃瓜者</span>
          </div>
        </div>

        <!-- 求职身份 -->
        <div class="item">
          <div class="itemleft">
            <span>求职身份</span>
          </div>
          <div class="itemrigth">
            <span class="nums">学生</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      srcs: "../assets/imgs/头像.jpg",
      qz:true
    };
  },
};
</script>

<style lang="scss" scoped>
.container {
  position: relative;
  .box {
    position: absolute;
    width: 300px;
    height: 250px;
    top:300px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    margin: auto;
    background-color: aqua;
    z-index: 99;
    p{
      height: 25px;
      line-height: 25px;
      text-align: center;
      font-size: 20px;
      margin-top: 5px;
    }
    img{
      position: absolute;
      right: 0px;
      left: 0px;
      width: 50%;
      margin:20px auto;
    }
  }
}

.settitle {
  height: 60px;
  display: flex;
  align-items: center;
  background-color: #fff;
  box-shadow: 0px 0px 0px 1px rgba($color: #cccc, $alpha: 0.4);
  .setimg {
    height: 18px;
    position: absolute;
    left: 15px;
    img {
      height: 100%;
      display: block;
    }
  }
  .text {
    margin: 0 auto;
  }
}
.account {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  margin: 20px 0px;
  .act {
    font-size: 16px;
    box-sizing: border-box;
    padding-left: 15px;
    p {
      font-size: 12px;
      margin-top: 5px;
      color: #999;
    }
  }
  .catimg {
    height: 12px;
    margin-right: 30px;
    img {
      height: 12px;
    }
  }
  .rit {
    margin-right: 15px;
  }
}

.setbox {
  box-sizing: border-box;
  padding: 10px 20px;
  background-color: #fff;
  margin-top: 20px;
  .item {
    display: flex;
    position: relative;
    height: 45px;
    line-height: 45px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 1px solid rgba($color: #cccc, $alpha: 0.2);
    &:nth-last-child(1) {
      padding-bottom: 0px;
      border-bottom: 0px;
    }
    &:nth-child(1) {
      padding-top: 0px;
    }
    .itemrigth {
      display: flex;
      .numimg {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
          display: block;
        }
      }
      span {
        font-size: 16px;
      }
      .nums {
        margin-right: 35px;
        position: relative;
        &::after {
          content: "";
          display: block;
          position: absolute;
          width: 20px;
          height: 20px;
          top: 0px;
          bottom: 0px;
          right: -35px;
          margin: auto 0;
          // background-color: red;
          background: url(../assets/imgs/右箭头.png) no-repeat center center;
          background-size: 70%;
        }
      }
    }
  }
}
</style>